home *** CD-ROM | disk | FTP | other *** search
Wrap
llllcccchhhhaaaarrrrssssttttrrrr((((3333GGGG)))) llllcccchhhhaaaarrrrssssttttrrrr((((3333GGGG)))) NNNNAAAAMMMMEEEE cccchhhhaaaarrrrssssttttrrrr,,,, llllcccchhhhaaaarrrrssssttttrrrr - draws a string of characters CCCC SSSSPPPPEEEECCCCIIIIFFFFIIIICCCCAAAATTTTIIIIOOOONNNN vvvvooooiiiidddd cccchhhhaaaarrrrssssttttrrrr((((SSSSttttrrrriiiinnnngggg ssssttttrrrr)))) vvvvooooiiiidddd llllcccchhhhaaaarrrrssssttttrrrr((((ttttyyyyppppeeee,,,,ssssttttrrrr)))) lllloooonnnngggg ttttyyyyppppeeee;;;; vvvvooooiiiidddd ****ssssttttrrrr;;;; PPPPAAAARRRRAAAAMMMMEEEETTTTEEEERRRRSSSS _s_t_r expects a pointer to the memory containing a sequence of character id's. _t_y_p_e expects one of the following symbolic constants defined in <_g_l/_g_l._h>: Each character id is represented by a single unsigned byte. STR_B Each character id is represented by two, consecutive unsigned bytes. STR_2B Each character id is represented by three, consecutive unsigned bytes. STR_3B Each character id is represented by four, consecutive unsigned bytes. STR_4B Each character id is represented by a 16-bit unsigned integer. STR_16 Each character id is represented by a 32-bit unsigned integer. STR_32 DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN cccchhhhaaaarrrrssssttttrrrr and llllcccchhhhaaaarrrrssssttttrrrr draw a string of text using the current raster font, color and writemask. The first character in the string is drawn at the current character position. After each character is drawn, the character's x-pixel spacing value is added to the x-coordinate of the current character position, and if defined using ddddeeeeffffllllffffoooonnnntttt, the character's y-pixel spacing value is added to the y-coordinate. For strings displayed with llllcccchhhhaaaarrrrssssttttrrrr sequences of character id's are converted to character values using the following formulas for the _i-th character in unsigned byte-string _s: STR_B _s[_i] STR_2B (_s[2*_i]*256) + _s[2*_i+1] STR_3B ((_s[3*_i]*256) + _s[3*_i+1])*256 + _s[3*_i+2] STR_4B (((_s[4*_i]*256) + _s[4*_i+1])*256) + _s[4*_i+2])*256 + _s[4*_i+3] For types SSSSTTTTRRRR____11116666 and SSSSTTTTRRRR____33332222, integer character id's correspond directly to character values. PPPPaaaaggggeeee 1111 llllcccchhhhaaaarrrrssssttttrrrr((((3333GGGG)))) llllcccchhhhaaaarrrrssssttttrrrr((((3333GGGG)))) The call cccchhhhaaaarrrrssssttttrrrr((((ssssttttrrrr)))) is equivalent in all cases to the call llllcccchhhhaaaarrrrssssttttrrrr((((SSSSTTTTRRRR____BBBB,,,,ssssttttrrrr)))). cccchhhhaaaarrrrssssttttrrrr and llllcccchhhhaaaarrrrssssttttrrrr may be used with raster fonts defined by either ddddeeeeffffrrrraaaasssstttteeeerrrrffffoooonnnntttt or ddddeeeeffffllllffffoooonnnntttt. End of string is indicated by a character id with a character value of zero. Characters not defined in the current raster font are ignored. SSSSEEEEEEEE AAAALLLLSSSSOOOO cmov, charstr, deflfont, defrasterfont, font, lstrwidth, strwidth, getcpos PPPPaaaaggggeeee 2222